<div class="status_bar" style="display: none;">
    <select id="categorys" class="form-control radius-none" style="width: 200px;">
        <option value="0">全部会员</option>
        <?php //echo $category_tree
        ?>
    </select>
</div>
<table class="table table-hover">
    <tr>
        <th style="border:none;">ID</th>
        <th style="border:none;">会员名称</th>
        <th style="border:none;">获得金额</th>
        <th style="border:none;">获得时间</th>
    </tr>
    <?php foreach($data as $v):?>
    <tr>
        <td style="line-height: 40px"><?php echo $v['id']?></td>
        <td style="line-height: 40px"><?php echo str_cut($v['user_name'],50,'...')?></td>
        <td style="line-height: 40px"><?php echo str_cut($v['money'],50,'...')?></td>
        <td style="line-height: 40px"><?php echo $v['add_time']?></td>
    </tr>
    <?php endforeach;?>
</table>
<div role="group" data-total="<?php echo $total?>" data-page="<?php echo $page?>" data-nums="<?php echo $nums?>" data-src="<?php echo U('Admin/Distribution/Index/lists');?>"  class="btn-group" id="_pages"></div>
<script>


    $(function(){

        Admin.pages();

        $('.update').unbind('click');
        $('.update').click(function(){

            var id = $(this).parent().data('id');
            var page = '<?php echo $page?>';

            showMessage('','','<?php echo U("Admin/Distribution/Index/lists")?>',{'id':id,'page':page});


        });
        //选择分类
        $('select#categorys').unbind('change');
        $('select#categorys').change(function(){

            options.user_id = $(this).val();

            showMessage('','',"<?php echo U('Admin/Distribution/index/lists');?>",options,0);

        });

    })


</script>
